<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('RFID数据明细')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-audittotal-edit" th:object="${tIteminfo}">
        <input id="itemNo" th:field="*{itemNo}" type="hidden">
        <div class="row">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-3 control-label">单品号：</label>
                    <div class="col-sm-8">
                        <input name="itemNo" th:field="*{itemNo}" class="form-control" type="text" disabled>
                    </div>
                </div>
            </div>
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-3 control-label">产品名称：</label>
                    <div class="col-sm-8">
                        <input name="productName" th:field="*{productName}" class="form-control" type="text" disabled>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-3 control-label">EPC:</label>
                    <div class="col-sm-8">
                        <input name="epc" th:field="*{epc}" class="form-control" type="text" disabled>
                    </div>
<!--                    <div class="col-sm-8">
                        <div class="input-group date">
                            <input name="auditDate" th:value="${#dates.format(tRfidAuditTotal.auditDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text" disabled>
                            <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        </div>
                    </div>-->
                </div>
            </div>
            <div class="col-sm-6">
                <div class="form-group">
                    <label class="col-sm-3 control-label">TID</label>
                    <div class="col-sm-8">
                        <input name="tid" th:field="*{tid}" class="form-control" type="text" disabled>
                    </div>
   <!--                 <div class="col-sm-8">
                        <select name="productCode" class="form-control m-b" th:with="type=${@dict.getType('FLEEING_GOODS_TYPE')}" disabled>
                            <option th:each="dict : ${type}" th:text="${dict.dictLabel}" th:value="${dict.dictValue}" th:field="*{type}"></option>
                        </select>
                    </div>-->
                </div>
            </div>
        </div>
    </form>
    <div class="col-sm-12 select-table table-striped">
        <table id="bootstrap-table"></table>
    </div>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: datetimepicker-js" />
<script th:inline="javascript">
    var itemNo=$("#itemNo").val();
    var prefix = ctx + "system/iteminfo";
    var IS_NORMNAL = [[${@dict.getType('IS_NORMNAL')}]];
    $(function() {
        var options = {
            url: prefix + "/rfidlist?"+itemNo,
            search:false,
            showRefresh:false,
            showToggle:false,
            showSearch:false,
            showExport:false,
            showColumns:false,
            modalName: "RFID数据明细",
            columns: [{
                checkbox: true
            },
                {
                    field: 'itemNo',
                    title: '单据号'
                },
                {
                    field: 'funcName',
                    title: '功能'
                },
                {
                    field: 'addressType',
                    title: '位置类别'
                },
                {
                    field: 'longitudeLatitude',
                    title: '经纬度值'
                },
                {
                    field: 'createTime',
                    title: '创建时间'
                },
                {
                    field: 'createBy',
                    title: '操作人员'
                },
                {
                    field: 'field',
                    title: '设备编号   '
                }
/*                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        /!*                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                                                actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');*!/
                        actions.push('<a class="btn btn-warning btn-xs ' + detailFlag + '" href="javascript:void(0)" onclick="$.operate.detail(\'' + row.id + '\')"><i class="fa fa-search"></i>查看</a>');
                        return actions.join('');
                    }
                }*/]
        };
        $.table.init(options);
    });

</script>
</body>
</html>